home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / canvasmode_copyproperties.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-02-26  |  1.9 KB  |  60 lines

  1. /*
  2.  For general Scribus (>=1.3.2) copyright and licensing information please refer
  3.  to the COPYING file provided with the program. Following this notice may exist
  4.  a copyright and/or license notice that predates the release of Scribus 1.3.2
  5.  for which a new license (GPL+exception) is in place.
  6.  */
  7. /***************************************************************************
  8. *                                                                         *
  9. *   This program is free software; you can redistribute it and/or modify  *
  10. *   it under the terms of the GNU General Public License as published by  *
  11. *   the Free Software Foundation; either version 2 of the License, or     *
  12. *   (at your option) any later version.                                   *
  13. *                                                                         *
  14. ***************************************************************************/
  15.  
  16. #ifndef CANVAS_MODE_COPYPROPERTIES_H
  17. #define CANVAS_MODE_COPYPROPERTIES_H
  18.  
  19. #include "canvasmode.h"
  20. #include "fpointarray.h"
  21.  
  22. class PageItem;
  23. class ScribusMainWindow;
  24. class ScribusView;
  25.  
  26.  
  27. // This class encapsulate the old code for mouse interaction from scribusview.cpp
  28.  
  29. class CanvasMode_CopyProperties :  public CanvasMode
  30. {
  31. public:
  32.     CanvasMode_CopyProperties(ScribusView* view);
  33.  
  34.     virtual void enterEvent(QEvent *);
  35.     virtual void leaveEvent(QEvent *);
  36.     
  37.     virtual void activate(bool);
  38.     virtual void deactivate(bool);
  39.     virtual void mouseDoubleClickEvent(QMouseEvent *m);
  40.     virtual void mouseReleaseEvent(QMouseEvent *m);
  41.     virtual void mouseMoveEvent(QMouseEvent *m);
  42.     virtual void mousePressEvent(QMouseEvent *m);
  43.     virtual void drawControls(QPainter* p);
  44.  
  45. // protected:
  46. //     void setResizeCursor(int);
  47.  
  48. private:
  49.     inline bool GetItem(PageItem** pi);
  50.     bool SeleItem(QMouseEvent *m);
  51.     void createContextMenu(PageItem *currItem, double mx, double my);
  52.  
  53.     int frameResizeHandle;
  54.     double Mxp, Myp, Dxp, Dyp;
  55.     ScribusMainWindow* m_ScMW;
  56. };
  57.  
  58.  
  59. #endif
  60.